//
//  MainViewController.m
//  xiaomaocuoyi
//
//  Created by 蔡舟 on 15/12/14.
//  Copyright © 2015年 com.xiaomaocuoyi. All rights reserved.
//

#import "MainViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    CGRect bouds = [[UIScreen mainScreen]applicationFrame];
    UIWebView* webView = [[UIWebView alloc]initWithFrame:bouds];
    webView.scalesPageToFit = YES;//自动对页面进行缩放以适应屏幕
    webView.detectsPhoneNumbers = YES;//自动检测网页上的电话号码，单击可以拨打
    [self.view addSubview:webView];
    NSURL* url = [NSURL URLWithString:@"http://wx.xiaomaocuoyi.com/wx/indexAction!init.action?isAndroidAPP=true&userPhone=18274970751&accessToken=92fde9049806cf218497e56d5d372d34"];//创建URL
    NSURLRequest* request = [NSURLRequest requestWithURL:url];//创建NSURLRequest
    [webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
